import request from '@/utils/request'

const {
    get: $get,
    post: $post,
    delete: $delete,
    download: $download
} = request

// 查询地下空洞隐患处置信息全部
export const alarmHiddenDangerList = data => {
    return $get('/alarm/alarmHiddenDanger/list', data)
}

// 查询地下空洞隐患处置信息列表
export const alarmHiddenDangerPage = data => {
    return $get('/alarm/alarmHiddenDanger/page', data)
}

// 新增地下空洞隐患处置信息
export const alarmHiddenDangerAdd = data => {
    return $post('/alarm/alarmHiddenDanger/add', data)
}

// 查询地下空洞隐患处置信息详情
export const alarmHiddenDangerDetail = id => {
    return $get('/alarm/alarmHiddenDanger/detail/'+ id)
}

// 更新地下空洞隐患处置信息
export const alarmHiddenDangerUpdate = data => {
    return $post('/alarm/alarmHiddenDanger/update', data)
}

// 删除地下空洞隐患处置信息
export const alarmHiddenDangerDelete = id => {
    return $post('/alarm/alarmHiddenDanger/delete/'+ id)
}

// 导出地下空洞隐患处置信息
export const alarmHiddenDangerExport = (data,fileName) => {
    return $download('/alarm/alarmHiddenDanger/export',data, fileName)
}
